﻿using System.Collections;
using System.Collections.Generic;
using TK.Character;
using TK.Modifier;
using UnityEngine;
namespace TK.Skill
{
/// <summary>
/// 
/// </summary>
public class Ability
{
        /// <summary>
        ///  技能id
        /// </summary>
        public int ID { get; }

        /// <summary>
        ///  技能所有者
        /// </summary>
        public Unit Owner { get; }

        /// <summary>
        ///  技能拥有的buff集合
        /// </summary>
        public List<Buff> BuffList = new List<Buff>();

        public Ability(int id,Unit owner)
        {
            ID = id;
            Owner = owner;
        }

        public void OnInit()
        {
            BuffList.ForEach(buff => buff.OnInit());
        }
}
}

